<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>操作节点的普通属性</title>
</head>
<body>
	<img src="./mn.png" alt="" onclick="kai()" />
</body>
<script type="text/javascript" src="./jquery-3.1.1.js"></script>
<script type="text/javascript">
	//判断attr可以获取元素的普通属性
	function kai(){
		if($('img').attr('src').indexOf('mn') >= 0){
			$('img').attr('src','./PLMM.jpg');
		}else{
			$('img').attr('src','./mn.png');
		}
	}
</script>
</html>